package day04;
import javax.smartcardio.CommandAPDU;
import java.util.Scanner;
public class ScannerDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入命令：");
        int a = scan.nextInt();
        if (a >= 500) {
            System.out.println(a *= 0.8);
        } else {
            System.out.println(a *= 0.5);
        }

  }}
